home *** CD-ROM | disk | FTP | other *** search
- global sessionObject, gmObject
-
- on startMovie
- puppetTempo(12)
- initGmMovie(sessionObject)
- gmObject = 0
- v = (the movieName).char[3..4]
- gmObject = new(script(v & "Script"))
- set the keyDownScript to EMPTY
- set the volume of sound 1 to 255
- sound(4).play(member("Atmossommar", 2))
- set the volume of sound 4 to 150
- end
-
- on stopMovie
- set the keyDownScript to EMPTY
- finitGmMovie(sessionObject)
- sound(4).stop()
- end
-
- on keyDown
- if the frameLabel <> 0 then
- v = (the frameLabel).char[1]
- if v = "h" then
- if the keyDownScript = EMPTY then
- set the keyDownScript to "gmObject.keyHit()"
- end if
- end if
- end if
- end
-